﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site2.Master" CodeBehind="Details2.aspx.vb" Inherits="Prototype1.Details2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <p style="font-family: 'Vladimir Script'; font-size: xx-large; font-weight:bold;">
        Robot Details&nbsp;&nbsp;&nbsp;
            &nbsp;
        &nbsp;<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:roboticsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:roboticsConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [mastTable1] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        </p>
        
        
        
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" 
            DataSourceID="SqlDataSource2" Width="205px" BackColor="White" 
            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" Height="240px" 
        style="margin-left: 4px; margin-right: 0px; margin-bottom: 0px">
            <Columns>
                <asp:ImageField DataImageUrlField="Picture">
                    <ControlStyle CssClass="picSizer" />
                </asp:ImageField>
                <asp:BoundField DataField="Robot_Name" HeaderText="Robot_Name" 
                    SortExpression="Robot_Name" />
                <asp:BoundField DataField="Ranking" HeaderText="Ranking" 
                    SortExpression="Ranking" />
                <asp:BoundField DataField="Creator" HeaderText="Creator" 
                    SortExpression="Creator" />
                <asp:BoundField DataField="Wins" HeaderText="Wins" 
                    SortExpression="Wins" />
                <asp:BoundField DataField="Losses" HeaderText="Losses" 
                    SortExpression="Losses" />
                <asp:BoundField DataField="Robot_Description" HeaderText="Robot_Description" 
                    SortExpression="Robot_Description" />
                <asp:BoundField DataField="Weapons" HeaderText="Weapons" 
                    SortExpression="Weapons" />
                <asp:BoundField DataField="Likes" HeaderText="Likes" SortExpression="Likes" />
            </Columns>
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#330099" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            <SortedAscendingCellStyle BackColor="#FEFCEB" />
            <SortedAscendingHeaderStyle BackColor="#AF0101" />
            <SortedDescendingCellStyle BackColor="#F6F0C0" />
            <SortedDescendingHeaderStyle BackColor="#7E0000" />
        </asp:GridView>
        
        <p style="font-family: 'Vladimir Script'; font-size: xx-large; font-weight:bold;">
         Comments&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImgButton1" runat="server" Width="67px" 
            BorderStyle="Outset" ImageUrl="~/Pictures/Like.jpeg" />
         &nbsp;&nbsp;
        <asp:Image ID="img_Thumb" runat="server" Width="85px" Height="64px" />
            <br />
            Add Your Comments</p>
    <p style="font-family: 'Vladimir Script'; font-size: xx-large; font-weight:bold;">
         Title: 
        <asp:TextBox ID="tb_Title" runat="server" Width="318px" 
            style="margin-left: 4px; margin-right: 0px;"></asp:TextBox>
    
    <br />
        
         Your Comment: 
        <asp:TextBox ID="tb_Comment" runat="server" Height="65px" 
            style="margin-left: 1px" Width="321px" TextMode="MultiLine"></asp:TextBox>
        
        
        &nbsp;<asp:Button ID="Butt1" runat="server" Text="Submit" Width="92px" 
                style="margin-left: 312px; margin-right: 127px" />
     <br /> <br />
    
       </p>
        
        <p style="font-family: 'Vladimir Script'; font-size: xx-large; font-weight:bold;">
            &nbsp;&nbsp;&nbsp;&nbsp; 
        
        
        
        <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
            DataKeyNames="ID" DataSourceID="SqlDataSource5" ForeColor="#333333" 
            GridLines="None" style="margin-left: 0px; margin-right: 0px;" Width="80%" 
                Height="200px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Comment" HeaderText="Comment" 
                    SortExpression="Comment" />
            </Columns>
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
        
    </p>
<br /> 
    <br />
    <br />
    <br />
    <br />
    <br /> 
    <br />

        <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
            ConnectionString="<%$ ConnectionStrings:roboticsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:roboticsConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [Comments] WHERE ([RobotFCKID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="RobotFCKID" QueryStringField="ID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        
        
        
    <p style="font-family: 'Vladimir Script'; font-size: xx-large; font-weight:bold;">
        <br />
        <br />

        
        
        </p>
        </asp:Content>







